/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package exercises.day03.pt02;

import java.sql.SQLException;

/**
 *
 * @author Student
 * 
 * c. A module which will retrieve all the book details from an author;
 * a. A module which will allow users to add new authors to the database;
 * 
 */
public class Author {
    //(AID, ANAME, AAGE, ACOUNTRY, AMAIL, APHONE)

    private String id;
    private String name;
    private int age;
    private String country;
    private String mail;
    private String phone;

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Author(String id, String name, int age, String country, String mail, String phone) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.country = country;
        this.mail = mail;
        this.phone = phone;
    }

    public Author() {
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Author{" + "id=" + id + ", name=" + name + ", age=" + age + ", country=" + country + ", mail=" + mail + '}';
    }

}
